package service.impl;

import service.OperationService;
//除法
public class OperationDiv implements OperationService {
    @Override
    public int getResult(int num1, int num2) {
        if (num2 == 0) {
            throw new ArithmeticException("除数不能为零");
        }
        return num1 / num2;
    }
}
